/* Importing Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Open+Sans:wght@400;600&display=swap");

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #ededed;
  background-color: #1a1a1a;
}

.full-page {
  height: 100vh;
  background-image: url("img.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 50px;
}

.intro-text {
  color: #ededed;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(90deg, #2d2d2d, #1a1a1a);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  z-index: 1000;
}

.header-content {
  max-width: 800px;
  text-align: center;
  color: #ededed;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

header.shrunk {
  padding: 10px;
  background: linear-gradient(90deg, #1a1a1a, #0d0d0d);
}

header.shrunk .header-content {
  opacity: 1;
  font-size: 18px;
}

.content {
  margin-top: 120px;
  padding: 20px;
}

/* Animation for the header transition */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Intro Text animation */
.intro-text {
  animation: fadeIn 1s ease-in-out;
}

h1 {
  font-size: 24px;
  margin: 0;
  transition: font-size 0.3s;
}

header.shrink h1 {
  font-size: 18px;
}

#position {
  font-size: 16px;
  font-weight: 600;
}

section,
footer {
  padding: 20px;
  margin-top: 100px; /* Ensuring content is not hidden behind the header */
}

h2 {
  color: #ffffff; /* Matching header color */
  font-size: 22px;
  border-bottom: 2px solid #002d72;
  padding-bottom: 10px;
  margin-bottom: 20px;
  transition: color 0.3s, border-bottom-color 0.3s;
}

h2:hover {
  color: #001643; /* Darker shade on hover */
  border-bottom-color: #001643;
}

.summary,
.cdl {
  font-size: 16px;
  line-height: 1.6;
}

#copyright {
  text-align: center;
  font-size: 14px;
  color: #777;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.5);
  margin-top: 20px;
  transition: all 0.3s ease;
}

td,
th {
  padding: 8px;
  border: 1px solid #ededed; /* Keeps borders solid and visible */
  color: #ededed; /* Text color */
  transition: background-color 0.3s;
}

th {
  background-color: rgba(45, 45, 45, 0.7);
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.2);
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

footer a {
  color: #0056b3; /* Subtle blue */
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #002d72; /* Darker blue on hover */
  text-decoration: underline;
}

input[type="text"],
input[type="email"],
textarea {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  width: 100%;
}

input[type="submit"] {
  background-color: #002d72;
  border: none;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

input[type="submit"]:hover {
  background-color: #001f5f; /* Darker blue on hover */
}

/* Gradient Background for Header */
header {
  background: linear-gradient(
    to bottom,
    rgba(20, 130, 158, 0.8),
    rgba(0, 45, 114, 0.5)
  );
}

header.shrink {
  background: linear-gradient(
    to bottom,
    rgba(0, 45, 114, 0.8),
    rgba(0, 45, 114, 0.3)
  );
}

/* Image Background */
header {
  /*background-image: url('Paras\ Pic\ in\ BITS\ 1st\ year.jpg'); /* Add your image path */
  background: linear-gradient(
    to bottom,
    rgba(0, 45, 114, 0.8),
    rgba(0, 45, 114, 0.5)
  );
  background-size: cover;
  background-position: center;
  padding-bottom: 15px;
}
